package polyn;

public class Pair {

    public double x;
    public double y;

    public Pair(double i, double j) {
        this.x = i;
        this.y = j;
    }

    public Pair times(double d) {
        return new Pair(d * x, d * y);
    }

    @Override
    public String toString() {
        super.toString();
        return "(" + x + "," + y + ")";
    }
}
